package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotAnnualInspection;

import java.util.Date;

/**
 * 电梯年检管理业务对象 iot_annual_inspection
 *
 * @author lsl
 * @date 2024-06-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotAnnualInspection.class, reverseConvertGenerate = false)
public class IotAnnualInspectionBo extends BaseEntity {

    /**
     * 年检ID
     */
    private Long inspectionId;

    /**
     * 关联计划ID
     */
    @NotNull(message = "关联计划ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long planId;

    /**
     * 电梯名称
     */
    @NotBlank(message = "电梯名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String elevatorName;

    /**
     * 年检日期
     */
    private Date annualDate;

    /**
     * 是否检查限速器（N.否，Y.是）
     */
    private String checkSpeedLimiter;

    /**
     * 是否年检通过
     */
    private String checkThrough;

    /**
     * 年检状态(0.待启动,1.执行中,2.已完成,3.已超期)
     */
    private String inspectionStatus;

    /**
     * 年检负责人
     */
    private String headMan;

    /**
     * 负责人ID
     */
    private Long headUserId;

    /**
     * 年检启动日期
     */
    private Date startTime;

    /**
     * 年检完成时间
     */
    private Date completionTime;

    /**
     * 年检描述
     */
    private String inspectionContext;

    /**
     * 年检图片
     */
    private String inspectionImg;

    /**
     * 备注
     */
    private String remark;


}
